package org.springblade.common.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by admin on 2019/4/8.
 */

public class WebLoginFIlter implements Filter {
	@Override
	public void init(FilterConfig filterConfig) throws ServletException {

	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
//		Integer userId = Func.toInt(request.getSession().getAttribute("userId"));
//		if (userId == null || userId < 1) {
//			request.getRequestDispatcher("/web/login").forward(request, response);
//		}
	}

	@Override
	public void destroy() {

	}
}
